package com.qf.openapi.web.master.dao;

import com.qf.openapi.web.master.entity.User;
import com.qf.openapi.web.master.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    User getUserByUsernameAndPassword(@Param("username") String username,@Param("password") String password);
    
    User getUserByUsername(@Param("username") String username);
    
    Integer insertUser(User user);
    
    Integer selectCount();
    
    List<User> selectUserByPage(@Param("start") Integer start,@Param("limit") Integer limit);
    
    List<User> getAllUser();
    
    Integer updateUserById(User user);
    
    Integer delUserByIds(Integer[] ids);
    
    User selectUserById(@Param("id") Integer id);
    
    List<User> getUsersByCondition(UserVo userVo);
}
